package com.j.lemon.learn.basic.jdkDTDL.interceptor;


import com.j.lemon.learn.basic.jdkDTDL.HelloWordIml;
import com.j.lemon.learn.basic.jdkDTDL.HelloWorld;

public class InterceptorProxyTest {
    public static void main(String[] args) {
        InterceptorJdkProxy proxy = new InterceptorJdkProxy(new HelloWordIml(),"MyInterceptor");
        HelloWorld in = (HelloWorld) proxy.bind(new HelloWordIml(),"MyInterceptor");
        in.sayHello();

    }
}
